<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<body>

<p> <input id="merId" type="text" placeholder="电话号"></p>
<p> <input id="merPassword" type="text" placeholder="密码"></p>
<p><input id="add" type="submit" value="修改"></p>
<script type="text/javascript">

    $(function() {
        $("#add").click(function() {
            $.ajax(
                {
                    url:"http://localhost:7410/people/Modifypeople",
                    type:"post",
                    dataType: "json",
                    data : {
                        "merId":$("#merId").val(),
                        "merPassword":$("#merPassword").val()
                    }
                })
        })
    })

</script>
</body>
</html>